#if !defined(AFX_EDITCAMERADLG_H__F06FBC85_727C_4362_BD82_00A3103DFF53__INCLUDED_)
#define AFX_EDITCAMERADLG_H__F06FBC85_727C_4362_BD82_00A3103DFF53__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// EditCameraDlg.h : header file
//
#include "..\RMSServer\RMSBaseServer.h"

/////////////////////////////////////////////////////////////////////////////
// CEditCameraDlg dialog

class CEditCameraDlg : public CDialog
{
// Construction
public:
	CBaseServer* pBaseServer;
	MAPINFO m_mapInfoTemp;

	void SetCurCamera();
	void SetCurRoom();
	void SetCurBuilding();
	void SetCurSite();
	void SetCurState(BOOL bState, BOOL bEdit = TRUE);

	CEditCameraDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CEditCameraDlg)
	enum { IDD = IDD_EDITCAMERADLG };
	CEdit	m_editPassword;
	CButton m_btnSubmit;
	CButton m_btnDelete;
	CButton	m_btnClear;
	CButton	m_btnAddCamera;
	CEdit	m_editWidth;
	CEdit	m_editQuality;
	CEdit	m_editHeight;
	CEdit	m_editFrameRate;
	CEdit	m_editPort;
	CEdit	m_editCameraID;
	CEdit	m_editBitrate;
	CComboBox	m_cmbxSite;
	CComboBox	m_cmbxRoom;
	CComboBox	m_cmbxCamera;
	CComboBox	m_cmbxBuilding;
	CIPAddressCtrl	m_ipCamera;
	UINT	m_nBitrate;
	CString	m_strBuilding;
	CString	m_strCamera;
	UINT	m_nCameraID;
	UINT	m_nPort;
	UINT	m_nFrameRate;
	UINT	m_nHeight;
	UINT	m_nQuality;
	CString	m_strRoom;
	CString	m_strSite;
	UINT	m_nWidth;
	CString	m_strPassword;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CEditCameraDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CEditCameraDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnEditChangeSite();
	afx_msg void OnEditChangeBuilding();
	afx_msg void OnEditChangeRoom();
	afx_msg void OnEditChangeCamera();
	afx_msg void OnSelendokSite();
	afx_msg void OnSelendokBuilding();
	afx_msg void OnSelendokRoom();
	afx_msg void OnSelendokCamera();
	afx_msg void OnAddcamera();
	afx_msg void OnClear();
	afx_msg void EnableSubmit();
	afx_msg void OnSelendokType();
	afx_msg void OnDelete();
	afx_msg void OnSubmit();
	afx_msg void OnFieldchangedCameraip(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnKillfocus();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void UpdateMap();
	BOOL m_bEdit;
	BOOL m_bEnableSubmit;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_EDITCAMERADLG_H__F06FBC85_727C_4362_BD82_00A3103DFF53__INCLUDED_)
